@import '~antd/es/style/variable.less';

.searchControl {
  margin-bottom: 16px;
  .searchControlList {
    .searchControlListTitle {
      display: flex;
      flex-direction: row;
      align-items: center;
      height: 24px;
      margin-bottom: 2px;
      padding-left: 20px;
      color: @text-color-secondary;
      font-weight: 500;
      font-size: 13px;
      > span:not(:last-child) {
        flex: 1;
      }
      > span:last-child {
        width: 48px;
        text-align: center;
      }
    }
  }
}

.rowListContainer {
  .rowListItem {
  }
}

.searchControlItem {
  position: relative;
  display: flex;
  flex-direction: row;
  height: 24px;
  padding-left: 20px;
  overflow: hidden;
  > span:first-child {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: @text-color-secondary;
    font-size: 16px;
    cursor: move;
    user-select: none;
  }
  .searchControlItemInput {
    flex: 1;
    margin: 1px 0;
    overflow: hidden;
    :global {
      input {
        padding: 0 4px 0 0;
      }
    }
  }
  .searchControlItemActions {
    width: 48px;
    line-height: 24px;
    text-align: center;
    > span {
      display: inline-block;
      width: 24px;
      font-size: 14px;
      line-height: 24px;
      text-align: center;
      vertical-align: middle;
      cursor: pointer;
    }
    > span:first-child {
      color: @blue-6;
      &:hover {
        color: @blue-5;
      }
    }
    > span:last-child {
      color: @red-6;
      &:hover {
        color: @red-5;
      }
    }
  }
}

.searchControlAttribute {
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
  padding-left: 24px;
  .searchControlAttributeTitle {
    flex: 0 0 auto;
    width: 60px;
    line-height: 34px;
  }
  .searchControlAttributeDict {
  }
  .searchControlAttributeOptions {
    display: flex;
    flex-direction: column;
    .searchControlAttributeOptionsTitle {
      display: flex;
      flex-direction: row;
      align-items: center;
      color: @text-color-secondary;
      & > span {
        flex: 1;
      }
    }
    .searchControlAttributeOptionsList {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin-bottom: 6px;
      & > input {
        flex: 1;
        padding: 0 4px 0 0;
        background-color: @background-color-base;
        &:not(:first-child) {
          margin-left: 6px;
        }
      }
    }
  }
  :global {
    .ant-tabs {
      .ant-tabs-nav-list {
        .ant-tabs-tab {
          padding: 6px 0;
        }
      }
    }
    .ant-tabs-top > .ant-tabs-nav {
      margin: 0 0 6px 0;
    }
  }
}
